package entity;

public class Userorder {
    private String orderNumber;

    private String tableNumber;

    private String userRemarks;

    private String username;

    private String orderTime;

    private String payStatus;

    private Double totalPrice;

    public Userorder() {
    }

    public Userorder(String orderNumber, String tableNumber, String userRemarks, String username, String orderTime, String payStatus, Double totalPrice) {
        this.orderNumber = orderNumber;
        this.tableNumber = tableNumber;
        this.userRemarks = userRemarks;
        this.username = username;
        this.orderTime = orderTime;
        this.payStatus = payStatus;
        this.totalPrice = totalPrice;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber == null ? null : orderNumber.trim();
    }

    public String getTableNumber() {
        return tableNumber;
    }

    public void setTableNumber(String tableNumber) {
        this.tableNumber = tableNumber == null ? null : tableNumber.trim();
    }

    public String getUserRemarks() {
        return userRemarks;
    }

    public void setUserRemarks(String userRemarks) {
        this.userRemarks = userRemarks == null ? null : userRemarks.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime == null ? null : orderTime.trim();
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus == null ? null : payStatus.trim();
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", tableNumber=").append(tableNumber);
        sb.append(", userRemarks=").append(userRemarks);
        sb.append(", username=").append(username);
        sb.append(", orderTime=").append(orderTime);
        sb.append(", payStatus=").append(payStatus);
        sb.append(", totalPrice=").append(totalPrice);
        sb.append("]");
        return sb.toString();
    }
}